﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" ResponseEncoding="utf-8" %>
<%@ OutputCache Duration="360000" VaryByParam="none" %>
<!DOCTYPE html>
<html id="htmlID" runat="server">
    <head>
        <meta http-equiv="content-type" content="text/html;charset=utf-8" />
        <meta name="keywords" content="网址导航,web3.0,网页应用" />
        <meta name="viewport" content="width=device-width, initial-scale=1.5, minimum-scale=1.0, maximum-scale=2.0, user-scalable=yes"/>
        <title>
        </title>
        <script src="Scripts/jquery-3.1.0.js"></script>
        <link href="index.css" rel="stylesheet" type="text/css" />
        <link href="rightMenu.css" rel="stylesheet" type="text/css" />
				
			<style>
					 
			.mask{width:100%;height:100%;background: rgba(0,0,0,0.7);position:fixed;z-index:998!important;top:0}
			.makeSure{position:fixed;top:50%;left:40%;z-index:999!important;font-size:15px;position:relative;width: 240px;height:150px;margin-left:30px;text-align: center;padding: 36px 15px;box-sizing: border-box;background: #fff;border-radius: 10px;}
			.makeSure>p>img{width: 21px;vertical-align: top;margin-right: 3px;position:relative;top:2px}
			.makeSure>div{width:51px;height:30px;line-height:30px;border-radius:5px;color:#fff;position:absolute;bottom:30px;}
			.chooseQuit{background:#9d9d9d;left:45px;}
			.chooseYes{background: #5e8f44;right:45px;}
			#duihuakuang{
				display:none;
				position:fixed;
				width:100%;
				height:100%;
				top:0;
				z-index:999!important
			}
			</style>
    </head>
    <body>
<div id="duihuakuang">
	<div class="mask"></div>
	<div class="makeSure">
	<p><img src="./image/warn.png">确认删除？</p>
	<div class="chooseQuit" onclick="quxiao()">取消</div>
	<div class="chooseYes" onclick="queren()">确定</div>
	</div>
</div>
			
        <div id="outer" style="width:100%;">
            <div id="fade" class="black_overlay">
            </div>
            <div id="divCenter">
                <div id="idFourHead" style="width:100%;position: relative">
                    <table id="frameTable">
                        <tr>
                            <%--<td>
                                <div id="menuOnLeft_001" class="div_menuOnLeft_001">
                                    navi
                                </div>
                                </td>
                                --%>
                                <td>
                                   <table id="idFourHeadTable">
                                        <tr>
                                            <td>
                                                <table id="menu_001" class="menu">
                                                    <tr class="clear">
                                                        <td>
                                                            <a id="signonID" href="javascript:void(0)" onclick="g.lightOn = new LightOn($('light'));">
                                                            </a>
                                                        </td>
                                                        <td>
                                                            <a id="hostID" href="#/main" class="linkOne">
                                                       </a>
                                                        </td>
                                                        <td>
                                                            <a id="publicID" href="#/public" 
                                                            class="linkOne">
                                                            </a>
                                                        </td>

                                                        <td onclick="hangle(event)">
                                                            
                                                            <a id="setting"><span class="set_font" >设置</span><i></i>
                                                                <div id="body" onclick="bodyclick(event)">
                                                                </div> 
                                                                <div class="update_box" id="update_box" onclick="window.location.href = 'updatepass.aspx';">
                                                                    <div class="update_box_min">
                                                                        <div id="triangle-up"></div>
                                                                        <div class="circle"></div>
                                                                        <span>修改密码</span>
                                                                    </div>
                                                                </div>
                                                            </a>
          
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <div id="outerSearch" style="width:100%;">
                                                    <div class="tabbox">
                                                        <div class="tabmenu">
                                                            <ul>
                                                                <li style="background-color: #fff">
                                                                    &nbsp;
                                                                </li>
                                                                <li onclick="tabChange(this,'tabcontent','0')" class="cli">
                                                                    网页
                                                                </li>
                                                                <li onclick="tabChange(this,'tabcontent','1')">
                                                                    图片
                                                                </li>
                                                                <li style="width: calc(100% - 183px); background-color: #fff;border-right:#fff 1px solid;">
                                                                    &nbsp;
                                                                </li>
                                                            </ul>
                                                        </div>
                                                        <div id="tabcontent">
                                                            <form target="_blank" action="" name="form1" method="get">
                                                                <iframe width="50%" height=100 scrolling="no" frameborder="0" src=""
                                                                id="google_sdo_frame" name="google_sdo_frame">
                                                                </iframe>
                                                                <div class="tab_content_search">
                                                                    <div class="search-item">
                                                                        <input id="id_radio_google_web" type="radio" name="engine" value="google_web"
                                                                        onclick="javascript:Switch('google')" />
                                                                        <label for="id_radio_google_web">
                                                                            谷歌
                                                                        </label>
                                                                    </div>
                                                                    <div class="search-item">
                                                                        <input id="id_radio_baidu_web" type="radio" name="engine" value="baidu_web"
                                                                        onclick="javascript:Switch('baidu')" />
                                                                        <label for="id_radio_baidu_web">
                                                                            百度
                                                                        </label>
                                                                    </div>
                                                                </div>
                                                                <input name="myselectvalue" type="hidden" value="0" />
                                                                <input name="mypage" type="hidden" value='google' />
                                                                <input name="Content" id="Content" value='' type="hidden" />
                                                            </form>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: center;" align="left">
                                                <div class="search" style="z-index:1!important">
                                                    <input id="webKeywordID" type="text" size="10" onkeydown="g.triggerSearchLocal(event)"
                                                    />
                                                    <div class="search_btn" onclick="g.searchLocal()">
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td id="tdA" style="color:White;">
                                                <div id="idA">
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div class="footer-wrap nav-bottom">
            <span id="copyrID" style="font-family: arial;font-size:smaller;">
            </span>
        </div>
        <div runat="server" id="lanID">
        </div>
        <div runat="server" id="scriptDivID">
        </div>
        <script src="library.js">
        </script>
        <script src="webCollectionXHR.js">
        </script>
        <script src="reglog.js">
        </script>
        <script src="webCollectionBase.js?v=3">
        </script>
        <script src="tool/menuOnTop.js">
        </script>
        <script src="eventutil.js">
        </script>
        <script>
			function hangle(event){
              var boxclick=document.getElementById('update_box');
              var body=document.getElementById('body')
              update_box.style.display="block";
              body.style.display='block';
              event.preventDefault();
            }	
            function bodyclick(event){
                var boxclick=document.getElementById('update_box')
                var body=document.getElementById('body')
                body.style.display='none';
                boxclick.style.display="none";
                event.stopPropagation();
            }
		    //取消按钮
		    function quxiao(){
		      document.getElementById("duihuakuang").style.display="none";			
            }
            
		    function queren(){
			// ie8以下不兼容，先删除
		    /**
			 *  var type_active=localStorage.getItem('type_active');
				if(type_active==1){
					d_queren_g()	
				}
				if(type_active==2){
					x_queren_g()
				}
			 */ 
			document.getElementById("duihuakuang").style.display="none";
							
		    }
				
            // -------------------------send and get data from server--------------------
            function sendAndGetData(isAsy, url, func) {
                try {
                    xmlRequest.open("GET", url, isAsy);
                    xmlRequest.onreadystatechange = function() {
                        if (xmlRequest.readyState == 4 && xmlRequest.status == 200) {
                            func(xmlRequest.responseText);
                        }
                    };
                    xmlRequest.send();
                } catch(e) {
                    return false;
                }
            }
            function postAndGetData(isAsy, url, data, func) {
                try {
                    xmlRequest.open("POST", url, true);
                    xmlRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
                    //xmlRequest.setRequestHeader("Content-Type", "application/json");

                    if (navigator.userAgent.indexOf("MSIE") > 0) {
                        xmlRequest.setRequestHeader("Connection", "close");
                    }
                            
                    xmlRequest.onreadystatechange = function() {
                        if (xmlRequest.readyState == 4 && xmlRequest.status == 200) {
                            func(xmlRequest.responseText);
                        } else {
                            //xmlRequest.open("POST", url, true);
                            //xmlRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
                            //if (navigator.userAgent.indexOf("MSIE") > 0) {
                            //    xmlRequest.setRequestHeader("Connection", "close");
                            //}
                            //xmlRequest.send(data);
                            // 重新加载
                        }
                    };
                    xmlRequest.send(data);
                } catch(e) {
                    return false;
                }
            }
            g.subdir = "main";
            g.URI = lib.parseUri(window.location.href);
            g.domainDirectory = g.URI.protocol + '://' + g.URI.authority;
            //var getDataURL = g.URI.protocol + '://' + g.URI.authority + "/SendDataToClient.aspx?owner=1&&flag=main&&freshParam=" + (new Date).getTime();
            var xmlRequest = SimpleXhrFactory.CreateXhrObject();
            var g_AllData;
           
            if (g.dataWebTable == undefined) {
                g.dataWebTable = [];
            }
       //     lib.ajax({
       //         type: "GET",
       //         cache: false,
       //         url: getDataURL,
       //         dataType: "json",
       //         contentType: "application/x-www-form-urlencoded",
       //         async: false,//异步
       //         success: function(data) {
       //             g.dataWebTable["main"] = eval('(' + data + ')');
       //             g.lastPageDataString = data;
       //         }, error: function(msg) {
				   // for(var info in msg)
				   //     console.log(info + " = " + msg[info]);
       //             g.tip.display(lan["32"]);
			    //}
       //     });
            $("signonID").innerHTML = lan["00"];
            $("hostID").innerHTML = lan["22"];
            $("publicID").innerHTML = lan["23"];
            $("copyrID").innerHTML = lan["30"];
            function tabChange(obj, id, num) {
                document.form1.myselectvalue.value = num;
                var arrayli = obj.parentNode.getElementsByTagName("li");
             
                for (i = 1; i < 3; i++) {
                    if (obj == arrayli[i]) {
                        arrayli[i].className = "cli";
                    } else {
                        arrayli[i].className = "";
                    }
                }
                setContent();
                getsrc();
            }
            function Switch(page) {
                document.form1.mypage.value = page;
                lib.cookie.set("searchEngine", page, 365, "/", true);
                setContent();
                getsrc();
            }
            function getsrc() {
                //  根据cookie:searchEngine的值设置默认的搜索工具
                var page = lib.cookie.get("searchEngine");
                if (page == undefined) page = "baidu";
                var ty = document.form1.myselectvalue.value;
                document.getElementById("google_sdo_frame").src = page + '.html?ty=' + ty;
                $("id_radio_" + page + "_web").checked = "checked";
            }
            function setContent() {
                var Content = frames["google_sdo_frame"].document.getElementById("sea").value;
                document.form1.Content.value = Content;
            }
            getsrc();
            g.user.setUserInfo();
            g.initialState();
            g.page = new B.Page();
            g.page.bindData(g.dataWebTable["main"]);
            g.page.createDom();
            g.page.refresh();


        </script>

        <script src="weblazy.js?v=4">
        </script>
        <!-- <script src="rightMenu.js"></script>//鼠标右键。 -->
        <!---coding------- -->
		<!--
        <script src="tool/menuOnLeft.js">
		</script>-->
    </body>
</html>